/*
 * 资源管理模块
 */


export function getResourceCate(params) {
  const data = {
    "code": 200,
    "msg": null,
    "data": [{
      "id": 45,
      "name": "互联网",
      "children": [{"id": 48, "name": "UI设计", "pid": 45}, {"id": 47, "name": "产品设计", "pid": 45}, {
        "id": 46,
        "name": "交互设计",
        "pid": 45
      }]
    }, {
      "id": 41,
      "name": "互联网",
      "children": [{"id": 44, "name": "需求分析", "pid": 41}, {"id": 43, "name": "UI设计", "pid": 41}, {
        "id": 42,
        "name": "交互设计",
        "pid": 41
      }]
    }, {
      "id": 36,
      "name": "互联网",
      "children": [{"id": 40, "name": "UI设计", "pid": 36}, {"id": 39, "name": "编程", "pid": 36}, {
        "id": 38,
        "name": "需求调研",
        "pid": 36
      }, {"id": 37, "name": "交互设计", "pid": 36}]
    }, {
      "id": 34,
      "name": "职业素养",
      "children": [{"id": 53, "name": "演讲技巧", "pid": 34}, {"id": 52, "name": "职场形象", "pid": 34}, {
        "id": 51,
        "name": "商务礼仪",
        "pid": 34
      }, {"id": 50, "name": "情绪管理", "pid": 34}, {"id": 49, "name": "沟通管理", "pid": 34}, {
        "id": 35,
        "name": "时间管理",
        "pid": 34
      }]
    }, {
      "id": 29,
      "name": "IT技术",
      "children": [{"id": 33, "name": "编程", "pid": 29}, {"id": 31, "name": "需求分析", "pid": 29}, {
        "id": 30,
        "name": "交互设计",
        "pid": 29
      }]
    }, {"id": 27, "name": "领导力"}, {"id": 26, "name": "人力资源管理"}, {"id": 25, "name": "财务管理"}, {
      "id": 24,
      "name": "营销管理"
    }, {"id": 14, "name": "生产管理"}, {
      "id": 13,
      "name": "供应链管理",
      "children": [{"id": 23, "name": "产销协同", "pid": 13}, {"id": 22, "name": "采购计划", "pid": 13}, {
        "id": 21,
        "name": "生产计划",
        "pid": 13
      }, {"id": 20, "name": "销售计划", "pid": 13}]
    }, {
      "id": 12,
      "name": "产品管理",
      "children": [{"id": 19, "name": "研发质量管理", "pid": 12}, {"id": 18, "name": "研发项目管理", "pid": 12}, {
        "id": 17,
        "name": "研发流程",
        "pid": 12
      }]
    }, {
      "id": 3,
      "name": "设备管理",
      "children": [{"id": 9, "name": "创业课程3", "pid": 3}, {"id": 8, "name": "创业课程2", "pid": 3}, {
        "id": 7,
        "name": "创业课程1",
        "pid": 3
      }]
    }, {
      "id": 2,
      "name": "质量管理",
      "children": [{"id": 6, "name": "心理学课程2", "pid": 2}, {"id": 5, "name": "心理学课程1", "pid": 2}]
    }, {
      "id": 1,
      "name": "战略管理",
      "children": [{"id": 11, "name": "竞争战略", "pid": 1}, {"id": 10, "name": "商业模式", "pid": 1}, {
        "id": 4,
        "name": "成功学课程1",
        "pid": 1
      }]
    }]
  }
  return {
    url: 'resource/getResourceCate',
    type: 'post',
    data: data
  }
}

export function getResourceList(params) {
  const resourceList = {
    "code": 200,
    "msg": null,
    "data": {
      "count": 4,
      "list": [{
        "id": 57,
        "resourceType": 4,
        "resourceCateId": null,
        "teacherId": 29,
        "teacherName": "徐魏魏",
        "resourceName": "李敏测试",
        "fileId": 603,
        "face": "http://mego-haina.oss-cn-hangzhou.aliyuncs.com/upload/default/201030174156120.jpg",
        "face2": null,
        "supplierId": null,
        "companyId": null,
        "supplierName": null,
        "isFastPlay": null,
        "isCopy": null,
        "createTime": "2020-11-15 15:58:02",
        "creator": 1,
        "isDelete": 0,
        "memo": null,
        "supplierIdName": null,
        "resourceCateName": null,
        "companyName": null,
        "headimg": "/upload/default/201114121316167.jpg",
        "fileName": null,
        "filePath": "platform/html/20201115/201115155811058.html",
        "fileCode": null,
        "fileType": 6,
        "pageCount": null,
        "parentResourceCateId": null,
        "parentResourceCateName": null
      }, {
        "id": 50,
        "resourceType": 4,
        "resourceCateId": null,
        "teacherId": null,
        "teacherName": null,
        "resourceName": "李敏测试图文",
        "fileId": 578,
        "face": "http://mego-haina.oss-cn-hangzhou.aliyuncs.com/upload/default/201030174156120.jpg",
        "face2": null,
        "supplierId": null,
        "companyId": null,
        "supplierName": null,
        "isFastPlay": null,
        "isCopy": null,
        "createTime": "2020-11-15 10:55:53",
        "creator": 1,
        "isDelete": 0,
        "memo": null,
        "supplierIdName": null,
        "resourceCateName": null,
        "companyName": null,
        "headimg": null,
        "fileName": null,
        "filePath": "platform/html/20201115/201115105552373.html",
        "fileCode": null,
        "fileType": 6,
        "pageCount": null,
        "parentResourceCateId": null,
        "parentResourceCateName": null
      }, {
        "id": 30,
        "resourceType": 4,
        "resourceCateId": 31,
        "teacherId": 29,
        "teacherName": "徐魏魏",
        "resourceName": "Product manager",
        "fileId": 457,
        "face": "http://mego-haina.oss-cn-hangzhou.aliyuncs.com/upload/default/201030174156120.jpg",
        "face2": null,
        "supplierId": null,
        "companyId": null,
        "supplierName": null,
        "isFastPlay": null,
        "isCopy": null,
        "createTime": "2020-11-14 13:09:45",
        "creator": 1,
        "isDelete": 0,
        "memo": null,
        "supplierIdName": null,
        "resourceCateName": "需求分析",
        "companyName": null,
        "headimg": "/upload/default/201114121316167.jpg",
        "fileName": null,
        "filePath": "/upload/html/201114130943073.html",
        "fileCode": null,
        "fileType": 6,
        "pageCount": null,
        "parentResourceCateId": 29,
        "parentResourceCateName": "IT技术"
      }, {
        "id": 9,
        "resourceType": 4,
        "resourceCateId": 3,
        "teacherId": null,
        "teacherName": null,
        "resourceName": "图文2",
        "fileId": null,
        "face": "http://mego-haina.oss-cn-hangzhou.aliyuncs.com/upload/default/201030174156120.jpg",
        "face2": null,
        "supplierId": null,
        "companyId": null,
        "supplierName": "",
        "isFastPlay": null,
        "isCopy": 0,
        "createTime": "2020-10-31 17:37:09",
        "creator": 1,
        "isDelete": 0,
        "memo": null,
        "supplierIdName": null,
        "resourceCateName": "设备管理",
        "companyName": null,
        "headimg": null,
        "fileName": null,
        "filePath": null,
        "fileCode": null,
        "fileType": null,
        "pageCount": null,
        "parentResourceCateId": null,
        "parentResourceCateName": null
      }]
    }
  }
  // if(params && params.resourceType){
  //   switch (params.resourceType) {
  //     case 1:
  //       data.data = {
  //         "count": 10,
  //         "list": [{
  //           "id": 44,
  //           "resourceType": 1,
  //           "resourceCateId": 25,
  //           "teacherId": 29,
  //           "teacherName": "徐魏魏",
  //           "resourceName": "李敏测试",
  //           "fileId": null,
  //           "face": "/platform/image/20201115/201115104919031.jpg",
  //           "face2": "/platform/image/20201115/201115104922699.jpg",
  //           "supplierId": null,
  //           "companyId": null,
  //           "supplierName": null,
  //           "isFastPlay": null,
  //           "isCopy": null,
  //           "createTime": "2020-11-15 10:49:33",
  //           "creator": 1,
  //           "isDelete": 0,
  //           "memo": null,
  //           "supplierIdName": null,
  //           "resourceCateName": "财务管理",
  //           "companyName": null,
  //           "headimg": "/upload/default/201114121316167.jpg",
  //           "fileName": null,
  //           "filePath": null,
  //           "fileCode": null,
  //           "fileType": null,
  //           "pageCount": null,
  //           "parentResourceCateId": null,
  //           "parentResourceCateName": null
  //         }, {
  //           "id": 36,
  //           "resourceType": 1,
  //           "resourceCateId": 23,
  //           "teacherId": 29,
  //           "teacherName": "徐魏魏",
  //           "resourceName": "平易近人",
  //           "fileId": null,
  //           "face": "platform/image/20201114/201114223150839.jpg",
  //           "face2": "platform/image/20201114/201114223157401.jpg",
  //           "supplierId": null,
  //           "companyId": null,
  //           "supplierName": null,
  //           "isFastPlay": null,
  //           "isCopy": null,
  //           "createTime": "2020-11-14 22:32:27",
  //           "creator": 1,
  //           "isDelete": 0,
  //           "memo": null,
  //           "supplierIdName": null,
  //           "resourceCateName": "产销协同",
  //           "companyName": null,
  //           "headimg": "/upload/default/201114121316167.jpg",
  //           "fileName": null,
  //           "filePath": null,
  //           "fileCode": null,
  //           "fileType": null,
  //           "pageCount": null,
  //           "parentResourceCateId": 13,
  //           "parentResourceCateName": "供应链管理"
  //         }, {
  //           "id": 33,
  //           "resourceType": 1,
  //           "resourceCateId": 14,
  //           "teacherId": 29,
  //           "teacherName": "徐魏魏",
  //           "resourceName": "vedio",
  //           "fileId": 466,
  //           "face": "/platform/image/20201114/201114184310979.jpg",
  //           "face2": "/platform/image/20201114/201114183300750.jpg",
  //           "supplierId": null,
  //           "companyId": null,
  //           "supplierName": null,
  //           "isFastPlay": null,
  //           "isCopy": null,
  //           "createTime": "2020-11-14 13:17:40",
  //           "creator": 1,
  //           "isDelete": 0,
  //           "memo": null,
  //           "supplierIdName": null,
  //           "resourceCateName": "生产管理",
  //           "companyName": null,
  //           "headimg": "/upload/default/201114121316167.jpg",
  //           "fileName": "海纳云后台界面(1).mp3",
  //           "filePath": null,
  //           "fileCode": "284a0754e2787dbc9ccb9f1243d35101_2",
  //           "fileType": 1,
  //           "pageCount": null,
  //           "parentResourceCateId": null,
  //           "parentResourceCateName": null
  //         }, {
  //           "id": 24,
  //           "resourceType": 1,
  //           "resourceCateId": 23,
  //           "teacherId": 28,
  //           "teacherName": "么么哒",
  //           "resourceName": "这是啥东西",
  //           "fileId": 354,
  //           "face": "/upload/default/201113153028042.jpeg",
  //           "face2": "/upload/default/201113145123917.jpg",
  //           "supplierId": null,
  //           "companyId": null,
  //           "supplierName": null,
  //           "isFastPlay": 0,
  //           "isCopy": 0,
  //           "createTime": "2020-11-05 19:29:58",
  //           "creator": 1,
  //           "isDelete": 0,
  //           "memo": null,
  //           "supplierIdName": null,
  //           "resourceCateName": "产销协同",
  //           "companyName": null,
  //           "headimg": "/upload/default/201113231238854.jpg",
  //           "fileName": "1.mp4",
  //           "filePath": null,
  //           "fileCode": "284a0754e246bbb9a18a406289e983b2_2",
  //           "fileType": 1,
  //           "pageCount": null,
  //           "parentResourceCateId": 13,
  //           "parentResourceCateName": "供应链管理"
  //         }, {
  //           "id": 23,
  //           "resourceType": 1,
  //           "resourceCateId": 9,
  //           "teacherId": 27,
  //           "teacherName": null,
  //           "resourceName": "视频一11",
  //           "fileId": 208,
  //           "face": "/upload/default/201105184202667.png",
  //           "face2": "/upload/default/201105184208089.png",
  //           "supplierId": 4,
  //           "companyId": null,
  //           "supplierName": null,
  //           "isFastPlay": 0,
  //           "isCopy": null,
  //           "createTime": "2020-11-05 19:10:03",
  //           "creator": 1,
  //           "isDelete": 0,
  //           "memo": null,
  //           "supplierIdName": "test1",
  //           "resourceCateName": "创业课程3",
  //           "companyName": null,
  //           "headimg": "/upload/default/201101220331323.jpeg",
  //           "fileName": "WechatIMG16.mp4",
  //           "filePath": null,
  //           "fileCode": "284a0754e21d35a73d8f05058e26d7f1_2",
  //           "fileType": 1,
  //           "pageCount": null,
  //           "parentResourceCateId": 3,
  //           "parentResourceCateName": "设备管理"
  //         }, {
  //           "id": 18,
  //           "resourceType": 1,
  //           "resourceCateId": 4,
  //           "teacherId": 9,
  //           "teacherName": null,
  //           "resourceName": "阿暗示法11",
  //           "fileId": 207,
  //           "face": "/upload/default/201031203730917.jpg",
  //           "face2": "/upload/default/201031203627370.jpeg",
  //           "supplierId": 2,
  //           "companyId": null,
  //           "supplierName": null,
  //           "isFastPlay": 1,
  //           "isCopy": null,
  //           "createTime": "2020-11-05 14:30:08",
  //           "creator": 1,
  //           "isDelete": 0,
  //           "memo": null,
  //           "supplierIdName": "供应商1",
  //           "resourceCateName": "成功学课程1",
  //           "companyName": null,
  //           "headimg": "/upload/default/201030174818651.jpg",
  //           "fileName": "mp4-1(1280x720).mp4",
  //           "filePath": null,
  //           "fileCode": "88083abbf5535a4d7b4d8614427559e0_8",
  //           "fileType": 0,
  //           "pageCount": null,
  //           "parentResourceCateId": 1,
  //           "parentResourceCateName": "战略管理"
  //         }, {
  //           "id": 11,
  //           "resourceType": 1,
  //           "resourceCateId": 4,
  //           "teacherId": 9,
  //           "teacherName": null,
  //           "resourceName": "产品经理培训课01.mp4",
  //           "fileId": 99,
  //           "face": "/upload/default/201030173726167.jpg",
  //           "face2": "/upload/default/201030204532636.jpg",
  //           "supplierId": 2,
  //           "companyId": null,
  //           "supplierName": null,
  //           "isFastPlay": 0,
  //           "isCopy": null,
  //           "createTime": "2020-11-01 15:23:22",
  //           "creator": 1,
  //           "isDelete": 0,
  //           "memo": null,
  //           "supplierIdName": "供应商1",
  //           "resourceCateName": "成功学课程1",
  //           "companyName": null,
  //           "headimg": "/upload/default/201030174818651.jpg",
  //           "fileName": "mp4-1(1280x720).mp4",
  //           "filePath": null,
  //           "fileCode": "284a0754e2f6f4ec33075331506679a3_2",
  //           "fileType": 0,
  //           "pageCount": null,
  //           "parentResourceCateId": 1,
  //           "parentResourceCateName": "战略管理"
  //         }, {
  //           "id": 6,
  //           "resourceType": 1,
  //           "resourceCateId": null,
  //           "teacherId": 1,
  //           "teacherName": null,
  //           "resourceName": "大师傅",
  //           "fileId": null,
  //           "face": "/upload/default/201030174137605.jpg",
  //           "face2": "/upload/default/201030174144214.jpg",
  //           "supplierId": 1,
  //           "companyId": null,
  //           "supplierName": null,
  //           "isFastPlay": 0,
  //           "isCopy": null,
  //           "createTime": "2020-10-31 16:48:11",
  //           "creator": 1,
  //           "isDelete": 0,
  //           "memo": null,
  //           "supplierIdName": "供应商",
  //           "resourceCateName": null,
  //           "companyName": null,
  //           "headimg": "/upload/default/201023134458308.jpg",
  //           "fileName": null,
  //           "filePath": null,
  //           "fileCode": null,
  //           "fileType": null,
  //           "pageCount": null,
  //           "parentResourceCateId": null,
  //           "parentResourceCateName": null
  //         }, {
  //           "id": 2,
  //           "resourceType": 1,
  //           "resourceCateId": null,
  //           "teacherId": 1,
  //           "teacherName": null,
  //           "resourceName": "视频1",
  //           "fileId": 13,
  //           "face": "/upload/default/201030174156120.jpg",
  //           "face2": "",
  //           "supplierId": 1,
  //           "companyId": null,
  //           "supplierName": null,
  //           "isFastPlay": 1,
  //           "isCopy": null,
  //           "createTime": "2020-10-30 17:41:58",
  //           "creator": 1,
  //           "isDelete": 0,
  //           "memo": null,
  //           "supplierIdName": "供应商",
  //           "resourceCateName": null,
  //           "companyName": null,
  //           "headimg": "/upload/default/201023134458308.jpg",
  //           "fileName": null,
  //           "filePath": "/upload/default/201023162613901.mp4",
  //           "fileCode": null,
  //           "fileType": null,
  //           "pageCount": null,
  //           "parentResourceCateId": null,
  //           "parentResourceCateName": null
  //         }, {
  //           "id": 1,
  //           "resourceType": 1,
  //           "resourceCateId": null,
  //           "teacherId": 1,
  //           "teacherName": null,
  //           "resourceName": "视频1",
  //           "fileId": 13,
  //           "face": "/upload/default/201030174207604.jpg",
  //           "face2": "",
  //           "supplierId": 1,
  //           "companyId": null,
  //           "supplierName": null,
  //           "isFastPlay": 1,
  //           "isCopy": null,
  //           "createTime": "2020-10-30 17:42:10",
  //           "creator": 1,
  //           "isDelete": 0,
  //           "memo": null,
  //           "supplierIdName": "供应商",
  //           "resourceCateName": null,
  //           "companyName": null,
  //           "headimg": "/upload/default/201023134458308.jpg",
  //           "fileName": null,
  //           "filePath": "/upload/default/201023162613901.mp4",
  //           "fileCode": null,
  //           "fileType": null,
  //           "pageCount": null,
  //           "parentResourceCateId": null,
  //           "parentResourceCateName": null
  //         }]
  //       }
  //       break;
  //     case 2:
  //       data.data = {
  //         "count": 7,
  //         "list": [{
  //           "id": 49,
  //           "resourceType": 2,
  //           "resourceCateId": null,
  //           "teacherId": null,
  //           "teacherName": null,
  //           "resourceName": "李敏测试音频",
  //           "fileId": null,
  //           "face": "/platform/image/20201115/201115105732718.png",
  //           "face2": null,
  //           "supplierId": null,
  //           "companyId": null,
  //           "supplierName": null,
  //           "isFastPlay": null,
  //           "isCopy": null,
  //           "createTime": "2020-11-15 10:55:26",
  //           "creator": 1,
  //           "isDelete": 0,
  //           "memo": null,
  //           "supplierIdName": null,
  //           "resourceCateName": null,
  //           "companyName": null,
  //           "headimg": null,
  //           "fileName": null,
  //           "filePath": null,
  //           "fileCode": null,
  //           "fileType": null,
  //           "pageCount": null,
  //           "parentResourceCateId": null,
  //           "parentResourceCateName": null
  //         }, {
  //           "id": 48,
  //           "resourceType": 2,
  //           "resourceCateId": null,
  //           "teacherId": null,
  //           "teacherName": null,
  //           "resourceName": "李敏测试音频",
  //           "fileId": 576,
  //           "face": "/platform/image/20201115/201115105518380.jpg",
  //           "face2": null,
  //           "supplierId": null,
  //           "companyId": null,
  //           "supplierName": null,
  //           "isFastPlay": null,
  //           "isCopy": null,
  //           "createTime": "2020-11-15 10:55:20",
  //           "creator": 1,
  //           "isDelete": 0,
  //           "memo": null,
  //           "supplierIdName": null,
  //           "resourceCateName": null,
  //           "companyName": null,
  //           "headimg": null,
  //           "fileName": "55-1911131QK2-51.jpg",
  //           "filePath": "platform/image/20201115/201115105515415.jpg",
  //           "fileCode": null,
  //           "fileType": 8,
  //           "pageCount": null,
  //           "parentResourceCateId": null,
  //           "parentResourceCateName": null
  //         }, {
  //           "id": 47,
  //           "resourceType": 2,
  //           "resourceCateId": 24,
  //           "teacherId": null,
  //           "teacherName": null,
  //           "resourceName": "李敏测试音频",
  //           "fileId": 574,
  //           "face": "/platform/image/20201115/201115105501249.jpg",
  //           "face2": null,
  //           "supplierId": null,
  //           "companyId": null,
  //           "supplierName": null,
  //           "isFastPlay": null,
  //           "isCopy": null,
  //           "createTime": "2020-11-15 10:55:05",
  //           "creator": 1,
  //           "isDelete": 0,
  //           "memo": null,
  //           "supplierIdName": null,
  //           "resourceCateName": "营销管理",
  //           "companyName": null,
  //           "headimg": null,
  //           "fileName": "0x300a0a0.png",
  //           "filePath": "platform/image/20201115/201115105457908.png",
  //           "fileCode": null,
  //           "fileType": 8,
  //           "pageCount": null,
  //           "parentResourceCateId": null,
  //           "parentResourceCateName": null
  //         }, {
  //           "id": 46,
  //           "resourceType": 2,
  //           "resourceCateId": 25,
  //           "teacherId": null,
  //           "teacherName": null,
  //           "resourceName": "李敏测试音频",
  //           "fileId": 572,
  //           "face": "/platform/image/20201115/201115105441500.jpg",
  //           "face2": null,
  //           "supplierId": null,
  //           "companyId": null,
  //           "supplierName": null,
  //           "isFastPlay": null,
  //           "isCopy": null,
  //           "createTime": "2020-11-15 10:54:47",
  //           "creator": 1,
  //           "isDelete": 0,
  //           "memo": null,
  //           "supplierIdName": null,
  //           "resourceCateName": "财务管理",
  //           "companyName": null,
  //           "headimg": null,
  //           "fileName": "55-1911131QK2-51.jpg",
  //           "filePath": "platform/image/20201115/201115105439075.jpg",
  //           "fileCode": null,
  //           "fileType": 8,
  //           "pageCount": null,
  //           "parentResourceCateId": null,
  //           "parentResourceCateName": null
  //         }, {
  //           "id": 45,
  //           "resourceType": 2,
  //           "resourceCateId": 25,
  //           "teacherId": 28,
  //           "teacherName": "么么哒",
  //           "resourceName": "李敏测试音频",
  //           "fileId": 570,
  //           "face": "/platform/image/20201115/201115105419573.jpg",
  //           "face2": null,
  //           "supplierId": null,
  //           "companyId": null,
  //           "supplierName": null,
  //           "isFastPlay": null,
  //           "isCopy": null,
  //           "createTime": "2020-11-15 10:54:30",
  //           "creator": 1,
  //           "isDelete": 0,
  //           "memo": null,
  //           "supplierIdName": null,
  //           "resourceCateName": "财务管理",
  //           "companyName": null,
  //           "headimg": "/upload/default/201113231238854.jpg",
  //           "fileName": "55-1911131QK2-51.jpg",
  //           "filePath": "platform/image/20201115/201115105409989.jpg",
  //           "fileCode": null,
  //           "fileType": 8,
  //           "pageCount": null,
  //           "parentResourceCateId": null,
  //           "parentResourceCateName": null
  //         }, {
  //           "id": 31,
  //           "resourceType": 2,
  //           "resourceCateId": 14,
  //           "teacherId": 29,
  //           "teacherName": "徐魏魏",
  //           "resourceName": "go to america",
  //           "fileId": 464,
  //           "face": "/upload/default/201114131543308.png",
  //           "face2": null,
  //           "supplierId": null,
  //           "companyId": null,
  //           "supplierName": null,
  //           "isFastPlay": null,
  //           "isCopy": null,
  //           "createTime": "2020-11-14 13:15:34",
  //           "creator": 1,
  //           "isDelete": 0,
  //           "memo": null,
  //           "supplierIdName": null,
  //           "resourceCateName": "生产管理",
  //           "companyName": null,
  //           "headimg": "/upload/default/201114121316167.jpg",
  //           "fileName": "LOGO.png",
  //           "filePath": null,
  //           "fileCode": "284a0754e215d7eab4fc43f82973e50e_2",
  //           "fileType": 1,
  //           "pageCount": null,
  //           "parentResourceCateId": null,
  //           "parentResourceCateName": null
  //         }, {
  //           "id": 3,
  //           "resourceType": 2,
  //           "resourceCateId": 1,
  //           "teacherId": 1,
  //           "teacherName": null,
  //           "resourceName": "音频1",
  //           "fileId": 101,
  //           "face": "/upload/default/201030174029526.png",
  //           "face2": "",
  //           "supplierId": 1,
  //           "companyId": null,
  //           "supplierName": null,
  //           "isFastPlay": 1,
  //           "isCopy": null,
  //           "createTime": "2020-10-31 18:29:30",
  //           "creator": 1,
  //           "isDelete": 0,
  //           "memo": null,
  //           "supplierIdName": "供应商",
  //           "resourceCateName": "战略管理",
  //           "companyName": null,
  //           "headimg": "/upload/default/201023134458308.jpg",
  //           "fileName": "mp4-1(1280x720).mp4",
  //           "filePath": null,
  //           "fileCode": "284a0754e2e44385dd1e247ed5ff3706_2",
  //           "fileType": 0,
  //           "pageCount": null,
  //           "parentResourceCateId": null,
  //           "parentResourceCateName": null
  //         }]
  //       }
  //       break;
  //     case 3:
  //       data.data = {
  //         "count": 4,
  //         "list": [{
  //           "id": 57,
  //           "resourceType": 4,
  //           "resourceCateId": null,
  //           "teacherId": 29,
  //           "teacherName": "徐魏魏",
  //           "resourceName": "李敏测试",
  //           "fileId": 603,
  //           "face": "/platform/image/20201115/201115155800448.jpg",
  //           "face2": null,
  //           "supplierId": null,
  //           "companyId": null,
  //           "supplierName": null,
  //           "isFastPlay": null,
  //           "isCopy": null,
  //           "createTime": "2020-11-15 15:58:02",
  //           "creator": 1,
  //           "isDelete": 0,
  //           "memo": null,
  //           "supplierIdName": null,
  //           "resourceCateName": null,
  //           "companyName": null,
  //           "headimg": "/upload/default/201114121316167.jpg",
  //           "fileName": null,
  //           "filePath": "platform/html/20201115/201115155811058.html",
  //           "fileCode": null,
  //           "fileType": 6,
  //           "pageCount": null,
  //           "parentResourceCateId": null,
  //           "parentResourceCateName": null
  //         }, {
  //           "id": 50,
  //           "resourceType": 4,
  //           "resourceCateId": null,
  //           "teacherId": null,
  //           "teacherName": null,
  //           "resourceName": "李敏测试图文",
  //           "fileId": 578,
  //           "face": null,
  //           "face2": null,
  //           "supplierId": null,
  //           "companyId": null,
  //           "supplierName": null,
  //           "isFastPlay": null,
  //           "isCopy": null,
  //           "createTime": "2020-11-15 10:55:53",
  //           "creator": 1,
  //           "isDelete": 0,
  //           "memo": null,
  //           "supplierIdName": null,
  //           "resourceCateName": null,
  //           "companyName": null,
  //           "headimg": null,
  //           "fileName": null,
  //           "filePath": "platform/html/20201115/201115105552373.html",
  //           "fileCode": null,
  //           "fileType": 6,
  //           "pageCount": null,
  //           "parentResourceCateId": null,
  //           "parentResourceCateName": null
  //         }, {
  //           "id": 30,
  //           "resourceType": 4,
  //           "resourceCateId": 31,
  //           "teacherId": 29,
  //           "teacherName": "徐魏魏",
  //           "resourceName": "Product manager",
  //           "fileId": 457,
  //           "face": "/upload/default/201114130911214.jpg",
  //           "face2": null,
  //           "supplierId": null,
  //           "companyId": null,
  //           "supplierName": null,
  //           "isFastPlay": null,
  //           "isCopy": null,
  //           "createTime": "2020-11-14 13:09:45",
  //           "creator": 1,
  //           "isDelete": 0,
  //           "memo": null,
  //           "supplierIdName": null,
  //           "resourceCateName": "需求分析",
  //           "companyName": null,
  //           "headimg": "/upload/default/201114121316167.jpg",
  //           "fileName": null,
  //           "filePath": "/upload/html/201114130943073.html",
  //           "fileCode": null,
  //           "fileType": 6,
  //           "pageCount": null,
  //           "parentResourceCateId": 29,
  //           "parentResourceCateName": "IT技术"
  //         }, {
  //           "id": 9,
  //           "resourceType": 4,
  //           "resourceCateId": 3,
  //           "teacherId": null,
  //           "teacherName": null,
  //           "resourceName": "图文2",
  //           "fileId": null,
  //           "face": "/upload/default/201030174106198.jpg",
  //           "face2": null,
  //           "supplierId": null,
  //           "companyId": null,
  //           "supplierName": "",
  //           "isFastPlay": null,
  //           "isCopy": 0,
  //           "createTime": "2020-10-31 17:37:09",
  //           "creator": 1,
  //           "isDelete": 0,
  //           "memo": null,
  //           "supplierIdName": null,
  //           "resourceCateName": "设备管理",
  //           "companyName": null,
  //           "headimg": null,
  //           "fileName": null,
  //           "filePath": null,
  //           "fileCode": null,
  //           "fileType": null,
  //           "pageCount": null,
  //           "parentResourceCateId": null,
  //           "parentResourceCateName": null
  //         }]
  //       }
  //       break;
  //     case 4:
  //       data.data = {
  //         "count": 12,
  //         "list": [
  //           {
  //             "id": 54,
  //             "resourceType": 3,
  //             "resourceCateId": 14,
  //             "teacherId": null,
  //             "teacherName": null,
  //             "resourceName": "李敏测试电子书",
  //             "fileId": 582,
  //             "face": "/platform/image/20201115/201115110259351.jpg",
  //             "face2": null,
  //             "supplierId": null,
  //             "companyId": null,
  //             "supplierName": null,
  //             "isFastPlay": null,
  //             "isCopy": null,
  //             "createTime": "2020-11-15 11:03:03",
  //             "creator": 1,
  //             "isDelete": 0,
  //             "memo": null,
  //             "supplierIdName": null,
  //             "resourceCateName": "生产管理",
  //             "companyName": null,
  //             "headimg": null,
  //             "fileName": "55-1911131QK2-51.jpg",
  //             "filePath": "platform/image/20201115/201115110256031.jpg",
  //             "fileCode": null,
  //             "fileType": 8,
  //             "pageCount": null,
  //             "parentResourceCateId": null,
  //             "parentResourceCateName": null
  //           }, {
  //             "id": 53,
  //             "resourceType": 3,
  //             "resourceCateId": null,
  //             "teacherId": null,
  //             "teacherName": null,
  //             "resourceName": "李敏测试电子书",
  //             "fileId": null,
  //             "face": null,
  //             "face2": null,
  //             "supplierId": null,
  //             "companyId": null,
  //             "supplierName": null,
  //             "isFastPlay": null,
  //             "isCopy": null,
  //             "createTime": "2020-11-15 11:02:48",
  //             "creator": 1,
  //             "isDelete": 0,
  //             "memo": null,
  //             "supplierIdName": null,
  //             "resourceCateName": null,
  //             "companyName": null,
  //             "headimg": null,
  //             "fileName": null,
  //             "filePath": null,
  //             "fileCode": null,
  //             "fileType": null,
  //             "pageCount": null,
  //             "parentResourceCateId": null,
  //             "parentResourceCateName": null
  //           }, {
  //             "id": 52,
  //             "resourceType": 3,
  //             "resourceCateId": null,
  //             "teacherId": null,
  //             "teacherName": null,
  //             "resourceName": "李敏测试电子书",
  //             "fileId": null,
  //             "face": null,
  //             "face2": null,
  //             "supplierId": null,
  //             "companyId": null,
  //             "supplierName": null,
  //             "isFastPlay": null,
  //             "isCopy": null,
  //             "createTime": "2020-11-15 11:02:43",
  //             "creator": 1,
  //             "isDelete": 0,
  //             "memo": null,
  //             "supplierIdName": null,
  //             "resourceCateName": null,
  //             "companyName": null,
  //             "headimg": null,
  //             "fileName": null,
  //             "filePath": null,
  //             "fileCode": null,
  //             "fileType": null,
  //             "pageCount": null,
  //             "parentResourceCateId": null,
  //             "parentResourceCateName": null
  //           }, {
  //             "id": 28,
  //             "resourceType": 3,
  //             "resourceCateId": 30,
  //             "teacherId": 29,
  //             "teacherName": "徐魏魏",
  //             "resourceName": "人人都是产品经理",
  //             "fileId": 452,
  //             "face": "/upload/default/201114124323651.jpeg",
  //             "face2": null,
  //             "supplierId": null,
  //             "companyId": null,
  //             "supplierName": null,
  //             "isFastPlay": null,
  //             "isCopy": null,
  //             "createTime": "2020-11-14 12:43:15",
  //             "creator": 1,
  //             "isDelete": 0,
  //             "memo": null,
  //             "supplierIdName": null,
  //             "resourceCateName": "交互设计",
  //             "companyName": null,
  //             "headimg": "/upload/default/201114121316167.jpg",
  //             "fileName": "赵石坚.jpg",
  //             "filePath": null,
  //             "fileCode": "284a0754e2169c1341c7b9532d8bafb7_2",
  //             "fileType": 1,
  //             "pageCount": null,
  //             "parentResourceCateId": 29,
  //             "parentResourceCateName": "IT技术"
  //           }, {
  //             "id": 26,
  //             "resourceType": 3,
  //             "resourceCateId": 3,
  //             "teacherId": null,
  //             "teacherName": null,
  //             "resourceName": "违法未",
  //             "fileId": null,
  //             "face": null,
  //             "face2": null,
  //             "supplierId": null,
  //             "companyId": null,
  //             "supplierName": "范围",
  //             "isFastPlay": null,
  //             "isCopy": 0,
  //             "createTime": "2020-11-05 19:31:14",
  //             "creator": 1,
  //             "isDelete": 0,
  //             "memo": null,
  //             "supplierIdName": null,
  //             "resourceCateName": "设备管理",
  //             "companyName": null,
  //             "headimg": null,
  //             "fileName": null,
  //             "filePath": null,
  //             "fileCode": null,
  //             "fileType": null,
  //             "pageCount": null,
  //             "parentResourceCateId": null,
  //             "parentResourceCateName": null
  //           }, {
  //             "id": 25,
  //             "resourceType": 3,
  //             "resourceCateId": null,
  //             "teacherId": null,
  //             "teacherName": null,
  //             "resourceName": "去分享一个未来",
  //             "fileId": null,
  //             "face": "",
  //             "face2": null,
  //             "supplierId": null,
  //             "companyId": null,
  //             "supplierName": "范围分为二分",
  //             "isFastPlay": null,
  //             "isCopy": 0,
  //             "createTime": "2020-11-05 19:31:04",
  //             "creator": 1,
  //             "isDelete": 0,
  //             "memo": null,
  //             "supplierIdName": null,
  //             "resourceCateName": null,
  //             "companyName": null,
  //             "headimg": null,
  //             "fileName": null,
  //             "filePath": null,
  //             "fileCode": null,
  //             "fileType": null,
  //             "pageCount": null,
  //             "parentResourceCateId": null,
  //             "parentResourceCateName": null
  //           }, {
  //             "id": 22,
  //             "resourceType": 3,
  //             "resourceCateId": 9,
  //             "teacherId": 9,
  //             "teacherName": null,
  //             "resourceName": "pdf测试",
  //             "fileId": 196,
  //             "face": "/upload/default/201104154123854.png",
  //             "face2": null,
  //             "supplierId": null,
  //             "companyId": null,
  //             "supplierName": "",
  //             "isFastPlay": null,
  //             "isCopy": 0,
  //             "createTime": "2020-11-04 15:42:48",
  //             "creator": 1,
  //             "isDelete": 0,
  //             "memo": null,
  //             "supplierIdName": null,
  //             "resourceCateName": "创业课程3",
  //             "companyName": null,
  //             "headimg": "/upload/default/201030174818651.jpg",
  //             "fileName": "前端面试题全面234.pdf",
  //             "filePath": "/upload/default/201104153933776.pdf",
  //             "fileCode": null,
  //             "fileType": 3,
  //             "pageCount": null,
  //             "parentResourceCateId": 3,
  //             "parentResourceCateName": "设备管理"
  //           }, {
  //             "id": 21,
  //             "resourceType": 3,
  //             "resourceCateId": 2,
  //             "teacherId": 9,
  //             "teacherName": null,
  //             "resourceName": "阿斯蒂芬",
  //             "fileId": 229,
  //             "face": "/upload/default/201031204458589.jpeg",
  //             "face2": null,
  //             "supplierId": null,
  //             "companyId": null,
  //             "supplierName": "",
  //             "isFastPlay": null,
  //             "isCopy": 0,
  //             "createTime": "2020-11-06 21:28:58",
  //             "creator": 1,
  //             "isDelete": 0,
  //             "memo": null,
  //             "supplierIdName": null,
  //             "resourceCateName": "质量管理",
  //             "companyName": null,
  //             "headimg": "/upload/default/201030174818651.jpg",
  //             "fileName": "文字文稿1.pdf",
  //             "filePath": "/upload/default/201106212852042.pdf",
  //             "fileCode": null,
  //             "fileType": 3,
  //             "pageCount": null,
  //             "parentResourceCateId": null,
  //             "parentResourceCateName": null
  //           }, {
  //             "id": 17,
  //             "resourceType": 3,
  //             "resourceCateId": 1,
  //             "teacherId": 9,
  //             "teacherName": null,
  //             "resourceName": "PDF电子书",
  //             "fileId": 78,
  //             "face": "/upload/default/201031171136698.jpg",
  //             "face2": null,
  //             "supplierId": null,
  //             "companyId": null,
  //             "supplierName": "",
  //             "isFastPlay": null,
  //             "isCopy": 0,
  //             "createTime": "2020-10-31 19:54:51",
  //             "creator": 1,
  //             "isDelete": 0,
  //             "memo": null,
  //             "supplierIdName": null,
  //             "resourceCateName": "战略管理",
  //             "companyName": null,
  //             "headimg": "/upload/default/201030174818651.jpg",
  //             "fileName": "【保利威】POLYV-企业培训解决方案.pdf",
  //             "filePath": "/upload/default/201031171125308.pdf",
  //             "fileCode": null,
  //             "fileType": 0,
  //             "pageCount": null,
  //             "parentResourceCateId": null,
  //             "parentResourceCateName": null
  //           }, {
  //             "id": 12,
  //             "resourceType": 3,
  //             "resourceCateId": null,
  //             "teacherId": 9,
  //             "teacherName": null,
  //             "resourceName": "PDF测试",
  //             "fileId": 72,
  //             "face": "/upload/default/201031170020417.jpg",
  //             "face2": null,
  //             "supplierId": null,
  //             "companyId": null,
  //             "supplierName": "",
  //             "isFastPlay": null,
  //             "isCopy": 0,
  //             "createTime": "2020-10-31 17:01:50",
  //             "creator": 1,
  //             "isDelete": 0,
  //             "memo": null,
  //             "supplierIdName": null,
  //             "resourceCateName": null,
  //             "companyName": null,
  //             "headimg": "/upload/default/201030174818651.jpg",
  //             "fileName": "【保利威】POLYV-企业培训解决方案.pdf",
  //             "filePath": "/upload/default/201031170014479.pdf",
  //             "fileCode": null,
  //             "fileType": 0,
  //             "pageCount": null,
  //             "parentResourceCateId": null,
  //             "parentResourceCateName": null
  //           }]
  //       }
  //       break;
  //   }
  // }
  return {
    url: 'resource/getResourceList',
    type: 'post',
    data: resourceList
  }
}

export function getImgCate() {
  const data = {
    "code": 200,
    "msg": null,
    "data": [{"id": 1, "parentCateId": null, "cateName": "美景", "createTime": "2020-11-11 14:27:06"}]
  }
  return {
    url: 'resource/getImgCate',
    type: 'get',
    data: data
  }
}

export function getImgList() {
  const data = {
    "code": 200,
    "msg": null,
    "data": {
      "count": 2,
      "list": [{
        "id": 7,
        "imgName": "李敏测试图片",
        "imgCateId": null,
        "fileId": 579,
        "createTime": "2020-11-15 10:57:07",
        "isDelete": 0,
        "filePath": "platform/image/20201115/201115105705149.jpg",
        "cateName": null,
        "parentImgCateId": null,
        "parentImgCateName": null
      }, {
        "id": 3,
        "imgName": "美图",
        "imgCateId": 2,
        "fileId": 379,
        "createTime": "2020-11-13 16:43:42",
        "isDelete": 0,
        "filePath": "/upload/default/201113164339151.jpg",
        "cateName": "山水",
        "parentImgCateId": 1,
        "parentImgCateName": "美景"
      }]
    }
  }
  return {
    url: 'resource/getImgList',
    type: 'get',
    data: data
  }
}

export function getImg() {
  const data = {
    "code": 200,
    "msg": null,
    "data": {
      "id": 7,
      "imgName": "李敏测试图片",
      "imgCateId": null,
      "fileId": 579,
      "createTime": "2020-11-15 10:57:07",
      "isDelete": 0,
      "filePath": "platform/image/20201115/201115105705149.jpg",
      "cateName": null,
      "parentImgCateId": null,
      "parentImgCateName": null
    }
  }
  return {
    url: 'resource/getImg',
    type: 'get',
    data: data
  }
}

export function getRemarkList() {
  const data = {
    "code": 200,
    "msg": null,
    "data": {
      "count": 12,
      "list": [{
        "id": 15,
        "author": "李敏测试名人名言",
        "content": "李敏测试名人名言",
        "createTime": "2020-11-15 11:05:21",
        "creator": 1
      }, {
        "id": 14,
        "author": "李敏测试名人名言",
        "content": "李敏测试名人名言",
        "createTime": "2020-11-15 11:05:17",
        "creator": 1
      }, {
        "id": 13,
        "author": "好好学习，天天向上！",
        "content": "好好学习，天天向上！",
        "createTime": "2020-11-15 11:05:03",
        "creator": 1
      }, {
        "id": 12,
        "author": "好好学习，天天向上！",
        "content": "好好学习，天天向上！",
        "createTime": "2020-11-15 11:04:58",
        "creator": 1
      }, {
        "id": 11,
        "author": "毛泽东",
        "content": "好好学习，天天向上！",
        "createTime": "2020-11-14 12:22:36",
        "creator": 1
      }, {
        "id": 10,
        "author": "李白",
        "content": "海纳百川，有容乃大！",
        "createTime": "2020-11-14 12:22:25",
        "creator": 1
      }, {"id": 9, "author": "徐魏魏", "content": "有志者，事竟成！", "createTime": "2020-11-14 12:22:10", "creator": 1}, {
        "id": 7,
        "author": "张三",
        "content": "这是一个不错的选择",
        "createTime": "2020-11-05 19:53:24",
        "creator": 1
      }, {
        "id": 6,
        "author": "王五",
        "content": "么么哒家藕粉就位i偶尔加藕粉",
        "createTime": "2020-11-05 19:41:34",
        "creator": 1
      }, {"id": 5, "author": "张三", "content": "这是一个不错的话", "createTime": "2020-11-05 19:41:25", "creator": 1}]
    }
  }
  return {
    url: 'resource/getRemarkList',
    type: 'get',
    data: data
  }
}

export function getScreenThemeList() {
  const data = {
    "code": 200,
    "msg": null,
    "data": {
      "count": 3,
      "list": [{
        "id": 9,
        "themeName": "李敏测试大屏主题",
        "img": "/platform/image/20201115/201115110759229.jpg",
        "color": "#551212"
      }, {
        "id": 8,
        "themeName": "李敏测试名人名言",
        "img": "/platform/image/20201115/201115110643089.png",
        "color": "#0054ff"
      }, {"id": 7, "themeName": "李敏测试名人大屏", "img": "/platform/image/20201115/201115110537496.jpg", "color": "#8b0505"}]
    }
  }
  return {
    url: 'resource/getScreenThemeList',
    type: 'get',
    data: data
  }
}

export function getTeacherList() {
  const data = {
    "code": 200,
    "msg": null,
    "data": {
      "count": 4,
      "list": [{
        "id": 35,
        "tAccount": null,
        "companyId": null,
        "supplierId": null,
        "teacherType": 1,
        "teacherName": "黎明测试讲师",
        "headimg": "/platform/image/20201115/201115110838134.jpg",
        "direction": null,
        "teacherPhone": null,
        "teacherEmail": null,
        "fee": null,
        "memo": null,
        "sign": null,
        "workHistory": null,
        "education": null,
        "introduction": null,
        "certificate": null,
        "createTime": "2020-11-15 11:09:12",
        "creator": 1,
        "isDelete": 0,
        "supplierName": null,
        "companyName": null
      }, {
        "id": 29,
        "tAccount": null,
        "companyId": null,
        "supplierId": 7,
        "teacherType": 1,
        "teacherName": "徐魏魏",
        "headimg": "/upload/default/201114121316167.jpg",
        "direction": "交互设计,需求分析",
        "teacherPhone": "17768089870",
        "teacherEmail": "xwwlovefighting@gmail.com",
        "fee": null,
        "memo": null,
        "sign": null,
        "workHistory": null,
        "education": null,
        "introduction": null,
        "certificate": null,
        "createTime": "2020-11-14 12:14:00",
        "creator": 1,
        "isDelete": 0,
        "supplierName": "苏州壹品信息技术有限公司",
        "companyName": null
      }, {
        "id": 28,
        "tAccount": null,
        "companyId": null,
        "supplierId": 6,
        "teacherType": 1,
        "teacherName": "么么哒",
        "headimg": "/upload/default/201113231238854.jpg",
        "direction": "这个,那个",
        "teacherPhone": "17728832839",
        "teacherEmail": "1285118892@qq.com",
        "fee": null,
        "memo": null,
        "sign": null,
        "workHistory": null,
        "education": null,
        "introduction": null,
        "certificate": null,
        "createTime": "2020-11-05 19:57:46",
        "creator": 1,
        "isDelete": 0,
        "supplierName": "海纳云平台",
        "companyName": null
      }, {
        "id": 26,
        "tAccount": null,
        "companyId": null,
        "supplierId": 2,
        "teacherType": 1,
        "teacherName": "阿斯蒂芬",
        "headimg": "/upload/default/201031204913386.jpeg",
        "direction": "健康学,科技",
        "teacherPhone": "18112121212",
        "teacherEmail": "asdf@qq.com",
        "fee": null,
        "memo": null,
        "sign": null,
        "workHistory": null,
        "education": null,
        "introduction": null,
        "certificate": null,
        "createTime": "2020-11-01 16:32:32",
        "creator": 1,
        "isDelete": 0,
        "supplierName": "供应商1",
        "companyName": null
      }]
    }
  }
  return {
    url: 'resource/getTeacherList',
    type: 'get',
    data: data
  }
}

export function getTeacher() {
  const data = {
    "code": 200,
    "msg": null,
    "data": {
      "id": 35,
      "tAccount": null,
      "companyId": null,
      "supplierId": null,
      "teacherType": 1,
      "teacherName": "黎明测试讲师",
      "headimg": "/platform/image/20201115/201115110838134.jpg",
      "direction": null,
      "teacherPhone": null,
      "teacherEmail": null,
      "fee": null,
      "memo": null,
      "sign": null,
      "workHistory": null,
      "education": null,
      "introduction": null,
      "certificate": null,
      "createTime": "2020-11-15 11:09:12",
      "creator": 1,
      "isDelete": 0,
      "supplierName": null,
      "companyName": null
    }
  }
  return {
    url: 'resource/getTeacher',
    type: 'get',
    data: data
  }
}

export function getSupplierList() {
  const data = {
    "code": 200,
    "msg": null,
    "data": {
      "count": 5,
      "list": [{
        "id": 9,
        "companyId": null,
        "supplierName": "李敏测试 供应商",
        "logo": null,
        "shortName": null,
        "memo": null,
        "linkman": null,
        "linkPhone": null,
        "email": null,
        "direction": null,
        "teacherCount": null,
        "createTime": "2020-11-15 11:14:56",
        "creator": 1,
        "isDelete": 0,
        "companyName": null
      }, {
        "id": 7,
        "companyId": null,
        "supplierName": "苏州壹品信息技术有限公司",
        "logo": "/upload/default/201114120506683.png",
        "shortName": "壹品",
        "memo": "提供产品经理专业的培训课程",
        "linkman": "徐魏魏",
        "linkPhone": "17768089870",
        "email": "1285118892@qq.com",
        "direction": null,
        "teacherCount": null,
        "createTime": "2020-11-14 12:03:02",
        "creator": 1,
        "isDelete": 0,
        "companyName": null
      }, {
        "id": 4,
        "companyId": null,
        "supplierName": "test1",
        "logo": "/upload/default/201101172833120.jpg",
        "shortName": "",
        "memo": "",
        "linkman": "test",
        "linkPhone": "1888888888",
        "email": "",
        "direction": null,
        "teacherCount": null,
        "createTime": "2020-11-01 17:28:35",
        "creator": 1,
        "isDelete": 0,
        "companyName": null
      }, {
        "id": 2,
        "companyId": null,
        "supplierName": "供应商1",
        "logo": "/upload/default/201101172957979.jpg",
        "shortName": "",
        "memo": "",
        "linkman": "供应商",
        "linkPhone": "15555555555",
        "email": "1",
        "direction": null,
        "teacherCount": null,
        "createTime": "2020-11-01 17:30:00",
        "creator": 1,
        "isDelete": 0,
        "companyName": null
      }, {
        "id": 1,
        "companyId": null,
        "supplierName": "供应商",
        "logo": "",
        "shortName": "gys",
        "memo": "111",
        "linkman": "供应商",
        "linkPhone": "15555555555",
        "email": "2388888888@qq.com",
        "direction": null,
        "teacherCount": null,
        "createTime": "2020-11-01 16:32:47",
        "creator": 1,
        "isDelete": 0,
        "companyName": null
      }]
    }
  }
  return {
    url: 'resource/getSupplierList',
    type: 'get',
    data: data
  }
}

export function getAdList() {
  const data = {
    "code": 200,
    "msg": null,
    "data": {
      "count": 2,
      "list": [{
        "id": 4,
        "adTitle": "广告2",
        "adFace": "/platform/image/20201117/201117185107776.png",
        "link": null,
        "position": "1",
        "isRelease": 1,
        "createTime": "2020-11-17 18:51:16"
      }, {
        "id": 3,
        "adTitle": "演讲",
        "adFace": "/platform/image/20201117/201117184834573.png",
        "link": "。",
        "position": "2",
        "isRelease": 1,
        "createTime": "2020-11-17 18:48:46"
      }]
    }
  }
  return {
    url: 'resource/getAdList',
    type: 'get',
    data: data
  }
}


export function getAd() {
  const data = {
    "code": 200,
    "msg": null,
    "data": {
      "id": 4,
      "adTitle": "广告2",
      "adFace": "/platform/image/20201117/201117185107776.png",
      "link": null,
      "position": "1",
      "isRelease": 1,
      "createTime": "2020-11-17 18:51:16"
    }
  }
  return {
    url: 'resource/getAd',
    type: 'get',
    data: data
  }
}
